﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace LIMS.Web
{
    public partial class AdmIsuueNotice : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnOK_Click(object sender, EventArgs e)
        {
            Model.NewsInfos infoTmp = new Model.NewsInfos()
            {
                newsInfoDetail = txtContent.Text.Trim(),
                newsInfoTitle = txtCaption.Text.Trim(),
                newsInfoType = selNewsType.Value == "1" ? true : false
            };
            BLL.NewsInfoManager.AddNewsInfo(infoTmp);
            Response.Redirect("./AdmNoticeManage.aspx");
        }

    }
}